package com.hmall.client;

import com.hmall.common.dto.Address;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author liCuiPing
 * @since 2022/12/11 15:45
 */
@Component
@FeignClient("userservice")
public interface UserClient {

    @GetMapping("address/{id}")
    Address findAddressById(@PathVariable("id") Long id);
}
